package org.azj.dbOperatorComponent;

import java.util.List;

public class SelectFilter{
	
	public SelectFilter(String columnList, String whereFilter,
			List<OrderByPair> orderByList, List<String> groupByList,
			String havingFilter) {
		super();
		this.columnList = columnList;
		this.whereFilter = whereFilter;
		this.orderByList = orderByList;
		this.groupByList = groupByList;
		this.havingFilter = havingFilter;
	}
	
	// fields for select only
	private String columnList = "*"; // no omit, can be '*'
	private String whereFilter;// can be omit
	private List<OrderByPair> orderByList;
	private List<String> groupByList;
	private String havingFilter;
	private boolean distinct = false;
	
	public SelectFilter(){
	}
	
	public void setDistinct(boolean distinct) {
		this.distinct = distinct;
	}
	
	public boolean getDistinct() {
		return this.distinct;
	}
	
	public String getColumnList() {
		return columnList;
	}
	public void setColumnList(String columnList) {
		this.columnList = columnList;
	}
	public String getWhereFilter() {
		return whereFilter;
	}
	public void setWhereFilter(String whereFilter) {
		this.whereFilter = whereFilter;
	}
	public List<OrderByPair> getOrderByList() {
		return orderByList;
	}
	public void setOrderByList(List<OrderByPair> orderByList) {
		this.orderByList = orderByList;
	}
	public List<String> getGroupByList() {
		return groupByList;
	}
	public void setGroupByList(List<String> groupByList) {
		this.groupByList = groupByList;
	}
	public String getHavingFilter() {
		return havingFilter;
	}
	public void setHavingFilter(String havingFilter) {
		this.havingFilter = havingFilter;
	}
}
